Auto merge of #3929 - Xion:master, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 15 May 2017 18:34:40 +0000 (18:34 +0000)
committerbors <bors@rust-lang.org>
Mon, 15 May 2017 18:34:40 +0000 (18:34 +0000)
commit00af72eec30dafbd3797f7c4728c77c064632b55
tree55ca03ffaf37adef19aff68a784db9e5127ca073
parent62acd6e3298a488d411f73a832a2ead75f23fe01
parent8e6ffa5cb534ae50b27c79cd64a083772c84c8d1
Auto merge of #3929 - Xion:master, r=alexcrichton

Allow cargo:rustc-env in build scripts

This is an attempt to address issue #2875. Basically, I'm trying to allow build scripts to produce`cargo:rustc-env=FOO=foo` lines in their output. These are then translated to `env!()`-friendly env. vars that rustc is run with.
src/cargo/ops/cargo_compile.rs